public class Demo4_18 {
    public static void main(String[] args) {
        //StringBuilder的使用
        String str = "hello ";
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append("world");
        str = stringBuilder.toString();
        System.out.println(str);
    }
}
